class jump {
	constructor(arg) {

	}

	nav(url) {
		uni.navigateTo({
			url: url,
			fail(res) {
				console.log(res)
			}
		})
	}
	navBack() {
		uni.navigateBack({
		})
	}
	red(url) {
		uni.redirectTo({
			url: url,
			fail(res) {
				console.log(res)
			}
		})
	}
	rel(url) {
		uni.reLaunch({
			url: url,
			fail(res) {
				console.log(res)
			}
		})
	}
	switch (url) {
		uni.switchTab({
			url: url,
			fail(res) {
				console.log(res)
			}
		})
	}

}

export default jump;